﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace FIFP.DashBoard.Helper
{
    public class FIFPConstants
    {
        public const string HYPERLINK_AEC = "aec";
        public const string HYPERLINK_OVERLAP = "overlap";
        public const string HYPERLINK_SHUTDOWN = "shutdown";
        public const string HYPERLINK_IMPORT = "import";
        public const string HYPERLINK_OPTIMIZATION = "optimization";
        public const string HYPERLINK_OPENRAWDATA = "original";
        public const string HYPERLINK_OPENBASE_SCENARIO = "basic";
        public const string HYPERLINK_OPENSCENARIO = "scenario";
        public const string HYPERLINK_SAVE = "save";
        public const string HYPERLINK_SAVEAS = "saveas";
        public const string HYPERLINK_SCENARIO = "scenario";
        public const string HYPERLINK_DEFAULTCOLOR = "DefaultForegroundColor";
        public const string HYPERLINK_SELECTEDCOLOR = "SelectedForegroundColor";
        public const string BUTTON_DEFAULTCOLOR = "ButtonStyleNew";
        public const string BUTTON_SELECTEDCOLOR = "ButtonStyleSelected";
        public const string NAVIGATION_TYPE = "navType=";
        public const string ASPX_PAGE = "FIFP.DashBoardTestPage.aspx";
        public const string HYPERLINK_CALCULATE = "calculate";

        public const string GRID_STYLE = "GridStyle";
        public const string GRID_HEADER_STYLE = "DataGridHeaderStyle";
        public const string GRID_ROW_STYLE = "GridRowStyle";
        public const string GRID_CELL_STYLE = "GridCellStyle";
        public const string OVERLAP_BUTTON_STYLE = "OverlapButtonStyle";

        public const string HYPERLINK_OPTMNG = "optmng";

        public const string UNITTYPE_RADIAL = "Radial";
        public const string UNITTYPE_TOWER = "Tower";
        public const string UNITTYPE_ALFATOWER = "AlfaTower";
        public const string UNITTYPE_WELL = "Well";
        public const string UNITTYPE_STRING = "String";
        public const string UNITTYPE_PIPELINE = "Pipeline";
        public const string UNITTYPE_COMPRESSOR = "Compressor";
        public const string UNITTYPE_SEPERATOR = "Separator";
        public const string UNITTYPE_MODULE = "Module";
        public const string UNITTYPE_SPHEROID = "Spheroid";
        public const string UNITTYPE_STRIPPER = "Stripper";
        public const string UNITTYPE_COMBINED_TOWER = "Combined Tower";
        public const string UNITTYPE_PLATFORM = "Platform";
        public const string UNITTYPE_USSC_PLATFORM = "USOSSP";
        public const string UNITTYPE_BYPASS_MOL = "US Oil Bypass";
        public const string UNITTYPE_MOL = "US MOL";
        public const string UNITTYPE_ROOT = "root";
        public const string PLATFORM_OCCP_UNIT = "OCCP";
        public const string PLATFORM_ERP_UNIT = "ERP";
        public const string PLATFORM_NRP_UNIT = "NRP";
        public const string PLATFORM_CSP_UNIT = "CSP";
        public const string PLATFORM_CSP_1_UNIT = "CSP-1";
        public const string PLATFORM_WIP_UNIT = "WIP";
        public const string PLATFORM_CP1_UNIT = "CP1";

        public const string TOWER_UT_12A = "UT-12A";
        public const string TOWER_UT_22A = "UT-22A";
        public const string TOWER_UT_40 = "UT-40";
        
        public const string ACTIVITY_CODE_TPC = "TPC";
        public const string ACTIVITY_CODE_CNST = "CNST";


        public const string FLUIDTYPE_OIL = "O";
        public const string FLUIDTYPE_WATER = "W";
        public const string FLUIDTYPE_GAS = "G";
        public const string FLUIDTYPE_COMBINED = "OW";
        public const string TOWERTYPE_MANIFOLD = "M";

        public const string FLUIDTYPE_OIL_DISPLAY = "Oil";
        public const string FLUIDTYPE_WATER_DISPLAY = "Water";
        public const string FLUIDTYPE_GAS_DISPLAY = "Gas";
        public const string FLUIDTYPE_GAS_COMBINED = "Combined";

        public const string LAYERNAME_NOTARAB = "NOT ARAB";

        public const string ADMIN_USERS = "1";
        public const string NORMAL_USERS = "2";

        public const string WARNINGTITLE_ORIGINALPLAN_SAVE = "Save Original Plan";
        public const string WARNINGMESSAGE_ORIGINALPLAN_SAVE = "Sorry! You don't have the permission to modify the original plan. Please save a copy to make modification.";


        public const string WARNINGTITLE_INTEGRATION_ALREADY = "Integration Scenario";
        public const string WARNINGMESSAGE_INTEGRATION_ALREADY = "There is already a integration scenario in database, can not save as integration scenario.";

        public const string WARNINGTITLE_BASE_NO = "No Basic Scenario";
        public const string WARNINGMESSAGE_BASE_NO = "Integration/Admin go to raw data and save as a basic scenario.";

        public const string WARNINGTITLE_SCENARIO = "Scenario";
        public const string WARNINGMESSAGE_SCENARIO = "Enter Scenario Name";

        public const string WARNINGTITLE_OPENSCENARIO = "Open Basic Scenario";
        public const string WARNINGMESSAGE_OPENSCENARIO = "There is no scenario into database.Please go and save as your scenario";
        public const string WARNINGMESSAGE_OPEN_BASE_RAW_SCENARIO = "There is no scenario into database.";
        public const string WARNINGMESSAGE_OPEN_BASE_RAW_DATERANGE_SCENARIO = "There is no scenario into database for the given date range.";

        public const string WARNINGTITLE_SAVEAS_SCENARIO = "SaveAs Scenario";
        public const string WARNINGTITLE_SAVEAS_INTEGRATION_SCENARIO = "SaveAs Integration Scenario";
        public const string WARNINGMESSAGE_SAVEAS_INTEGRATION_SCENARIO = "Integration scenario has inserted successfully into database";


        public const string WARNINGTITLE_SAVE_SCENARIO = "Save Scenario";
        public const string WARNINGMESSAGE_SAVE_SCENARIO = "The Changes have been updated successfully into database";
        public const string WARNINGMESSAGE_SAVENEW_SCENARIO = "New Scenario has inserted successfully into database";
        public const string WARNINGMESSAGE_SAVE_NOCHANGE = "No modifications to be saved on this scenario";

        public const string WARNINGTITLE_OVERLAP = "Overlap";
        public const string WARNINGMESSAGE_OVERLAP = "The Activities in the list still overlapped";
        public const string WARNINGMESSAGE_NO_OVERLAP = "There is no overlap for the selected location";

        public const string WARNINGTITLE_APPLYSIMOPS = "Apply SIMOPS";
        public const string WARNINGMESSAGE_APPLYSIMOPS = "Only two activities is applicable for apply SIMOPS in one group";

        public const string WARNINGTITLE_DELETE_LSD_ACTIVITY = "Delete LSD Activity";
        public const string WARNINGMESSAGE_DELETE_LSD_ACTIVITY = "Please select activity from activities grid then only you could able to delete LSD task.";
        public const string WARNINGMESSAGE_SELECT_LSD_ACTIVITY = "Please choose selected linked shutdown unit activity from the activities grid.";
        public const string WARNINGMESSAGE_DELETE_LSD = "Can’t switch on, the flowing  route is shut.";
        public const string WARNINGMESSAGE_SELECT_ACTIVITY = "Please choose atleast one activity from the activities grid.";
        public const string WARNINGTITLE_SELECT_ACTIVITY = "Select Activity";
        public const string WARNINGMESSAGE_DELETE_ACTIVITY = "At least one linked shutdown should be deleted to enable reduce capacity button.";
        public const string WARNINGTITLE_SELECT_LSD_UNIT = "Select Linked shutdown unit";

        public const string WARNINGMESSAGE_DRAG_RADIALSWITCH = "Please switch back the radial before edit the activity";
        public const string WARNINGTITLE_DRAG_RADIALSWITCH = "Edit RadialSwitch";

        public const string DISPLAY_SCENARIO = "Scenario";
        public const string VALIDATE_SCENARIO = "ValidateScenario";
        public const string propertyExpression = "propertyExpression";
        public const string Couldntfindanyproperty = "Couldn't find any property called {0} on type {1}";
        public const string SCENARIO_ALREADY_EXISTS = "{0} is already exist. Please enter another name";

        public const string DISPLAY_UNITNAME = "UnitName";
        public const string VALIDATE_UNITNAME = "ValidateUnitName";
        public const string DISPLAY_PERCENTAGE = "Percentage";
        public const string VALIDATE_PERCENTAGE = "ValidatePercentage";
        public const string VALIDATE_REDUCEDCAPACITY = "ValidateReducedCapacity";
        public const string VALIDATE_REDUCEDCAPACITY1 = "ValidateRC";
        public const string VALIDATE_ISNUMERIC = "ValidateIsNumeric";
        

        public const string DISPLAY_STARTDATE = "StartDate";
        public const string VALIDATE_STARTDATE = "ValidateStartDate";

        public const string DISPLAY_ACTIVITY_ENDDATE = "ActivityEndDate";
        public const string VALIDATE_ACTIVITY_ENDATE = "ValidateActivityEndDate";

        public const string DISPLAY_ACTIVITY_STARTDATE = "ActivityStartDate";
        public const string VALIDATE_ACTIVITY_STARTDATE = "ValidateActivityStartDate";

        public const string DISPLAY_ENDDATE = "EndDate";
        public const string VALIDATE_ENDATE = "ValidateEndDate";

        public const string OVERLAP_TYPE_SINGLEUNIT = "SingleType";
        public const string OVERLAP_TYPE_TOWERWELLS = "TowerWells";
        public const string OVERLAP_TYPE_TOWERPIPELINES = "TowerPipelines";
        public const string OVERLAP_TYPE_WELLPIPELINES = "WellPipelines";
        public const string OVERLAP_TYPE_ALFATOWER = "AlfaTower";
        public const string OVERLAP_TYPE_ALFATOWERWELLS = "AlfaTowerWells";

        

        public const string SHUTDOWN_CLOSEDSTRING_ALLSTRINGS = "All Strings";
        public const string SHUTDOWN_CLOSEDSTRING_OILSTRINGS = "Oil Strings";
        public const string SHUTDOWN_CLOSEDSTRING_WATERSTRINGS = "Water Strings";
        public const string SHUTDOWN_CLOSEDSTRING_GASSTRINGS = "Gas Wells";

        public const string ACTIVITY_TYPE_RIG = "RIG";
        public const string ACTIVITY_TYPE_RGL = "RGL";
        public const string ACTIVITY_TYPE_MTN_SS = "MTN-SS";
        public const string ACTIVITY_TYPE_PIG_IP = "PIG-IP";
        public const string ACTIVITY_TYPE_PIG_CL = "PIG-CL";
        public const string ACTIVITY_TYPE_INSP_F = "INSP-F";
        public const string ACTIVITY_TYPE_HKP = "HKP";
        public const string ACTIVITY_TYPE_MON = "MON";

        public const string OVERLAP_REMOVE_TEXT = "Overlap Removed";
        public const string APPLY_SIMOPS_TEXT = "OP - SIMPOS applied";

        public const string DATASOURCE_ID = "System.Sources.Db.MsSql.FIFP";
        public const string SELECT_RAWDATA_QUERY_ID = "System.Sources.Db.MsSql.FIFP.Queries.Select_RawdataByDateRange.Query";
        public const string SAVE_BASESCENARIO_QUERY_ID = "System.Sources.Db.MsSql.FIFP.Queries.SaveAsBasicScenario.Query";
        public const string SELECT_BASESCENARIO_QUERY_ID = "System.Sources.Db.MsSql.FIFP.Queries.Select_BasicScenarioByDateRange.Query";
        public const string SAVE_CURRENTSCENARIO_QUERY_ID = "System.Sources.Db.MsSql.FIFP.Queries.SaveCurrentScenario.Query";
        public const string SAVEAS_NEWSCENARIO_QUERY_ID = "System.Sources.Db.MsSql.FIFP.Queries.SaveAsNewScenario.Query";
        public const string SELECT_SCENARIOS_BYUSERNAME_QUERY_ID = "System.Sources.Db.MsSql.FIFP.Queries.Select_ScenariosByUserName.Query";
        public const string SELECT_OPENSCENARIOS_BYUSERNAME_QUERY_ID = "System.Sources.Db.MsSql.FIFP.Queries.Select_ScenarioByScenarioIdandDateRange.Query";
        public const string BASE_SCENARIO = "";
        public const string SAVE_CURRENTSCENARIO_CAPACITYDATA_QUERY_ID = "System.Sources.Db.MsSql.FIFP.Queries.SaveCalculationResults.Query";
        public const string SCENARIO_CAPACITYDATA_QUERY_ID = "System.Sources.Db.MsSql.FIFP.Queries.Select_ScenarioCapacity.Query";
        public const string ADDNEWACTIVITY_QUERY_ID = "System.Sources.Db.MsSql.FIFP.Queries.SaveNewActivity.Query";

        public const string HELPFILE_HOME_INITIAL_PAGE = "Home page initial.pdf";
        public const string HELPFILE_HOME_PAGE = "Home page full.pdf";
        public const string HELPFILE_OVERLAP_PAGE = "Overlap Management  page.pdf";
        public const string HELPFILE_LSD_PAGE = "Linked Shutdown Management  page.pdf";
        public const string HELPFILE_OPTI_PAGE = "Optimization Management  page.pdf";
        public const string HELPFILE_SCENARIO_PAGE = "Scenario Compoarison  page.pdf";


        public const string USER_ROLES_ADMIN = "ADMINISTRATOR";
        public const string USER_ROLE_INTEGRATOR = "INTEGRATOR";
        public const string USER_ROLE_USER = "USER";

        public const string USER_ROLES_ADMIN_ID = "1";
        public const string USER_ROLE_INTEGRATOR_ID = "2";
        public const string USER_ROLE_USER_ID = "3";


        public const string ORIGINAL_PLAN = "Original Plan";
        public const string INTEGRATD_PLAN = "Integrated Plan";
        public const string SAVE_PLAN = "Save";
        public const string SELECT_ORIGINALPLAN_QUERY_ID = "System.Sources.Db.MsSql.FIFP.Queries.Select_OriginalPlans.Query";
        public const string SELECT_ACTIVITYTYPES_AND_DIVISION_QUERY_ID = "System.Sources.Db.MsSql.FIFP.Queries.Select_ActivityTypesAndDivisions.Query";
        public const string SELECT_UNITS_QUERY_ID = "System.Sources.Db.MsSql.FIFP.Queries.Select_Units.Query";
        public const string INTEGRATD_PLAN_NAME = "integration_plan";
        public const string ORIGINAL_PLAN_NAME = "original_plan";
        public const string SELECT_PLAN_BY_NAME_QUERY_ID = "System.Sources.Db.MsSql.FIFP.Queries.Select_PlanByName.Query";
        public const string EC_PLAN = "EC Plan";
        public const string EC_PLAN_NAME = "ec_plan";
        public const string EC_UPDATED_PLAN = "EC Updated Plan";
        public const string EC_NEWSCENARIO = "New Name";
        public const string SELECT_ALL_SCENARIOS_QUERY_ID = "System.Sources.Db.MsSql.FIFP.Queries.Select_AllScenarios.Query";
        public const string SELECT_USER_ROLES_QUERY_ID = "System.Sources.Db.MsSql.FIFP.Queries.Select_UserRolesByUserName.Query";
        public const string SELECT_UNIT_CAPACITY_QUERY_ID = "System.Sources.Db.MsSql.FIFP.Queries.Select_UnitCapacityRelationship.Query";
        public const string SELECT_UNIT_LAYER_QUERY_ID = "System.Sources.Db.MsSql.FIFP.Queries.Select_UnitLayerRelationship.Query";
        public const string SELECT_EFFECTIVE_CAPACITY_QUERY_ID = "System.Sources.Db.MsSql.FIFP.Queries.Select_ScenarioEffectiveCapacity.Query";
        public const string SELECT_ECPlanData_QUERY_ID = "System.Sources.Db.MsSql.FIFP.Queries.Select_ECPlanData.Query";
        public const string SAVE_SaveReducedCapacity_QUERY_ID = "System.Sources.Db.MsSql.FIFP.Queries.SaveReducedCapacity.Query";
        public const string SELECT_Select_ReducedCapacity_QUERY_ID = "System.Sources.Db.MsSql.FIFP.Queries.Select_ReducedCapacity.Query";
        public const string SELECT_SaveSwitchedRadials_QUERY_ID = "System.Sources.Db.MsSql.FIFP.Queries.SaveSwitchedRadials.Query";
        public const string SELECT_Select_SWITCHEDRADIAL_QUERY_ID = "System.Sources.Db.MsSql.FIFP.Queries.Select_SwitchedRadial.Query";
        public const string SELECT_Save_ADMIN_SWITCHEDRADIAL_QUERY_ID = "System.Sources.Db.MsSql.FIFP.Queries.SaveAdminRadialSwitch.Query";
        public const string GET_GROUPUSERS = "System.Sources.Db.MsSql.FIFP.Queries.Select_UserDetailsByLoginId.Query";

        public const string SELECT_SETTINGS_QUERY_ID = "System.Sources.Db.MsSql.FIFP.Queries.Select_SettingsData.Query";
        public const string INSERT_SETTINGS_QUERY_ID = "System.Sources.Db.MsSql.FIFP.Queries.InsertSettingsData.Query";
        
        
        public const string VALIDATE_SCENARIO_STARTDATE = "ValidateScenarioStartDate";
        public const string VALIDATE_SCENARIO_ENDDATE = "ValidateScenarioEndDate";

        public const string SELECT_UNIT_TYPE = "Select UnitType";
        public const string SELECT_UNITNAME = "Select UnitName";
        public const string SELECT_DIVISION = "Select Division";
        public const string SELECT_ACTIVITY = "Select Activity";
        public const string SELECT_LAYER = "Select LayerName";
        public const string SELECT_SCENARIO = "Select Scenario";

        public const string VALIDATE_UNIT_TYPE = "ValidateUnitType";
        public const string VALIDATE_COMBOUNITNAME = "ValidateComboUnitName";
        public const string VALIDATE_DIVISION = "ValidateDivision";
        public const string VALIDATE_ACTIVITY = "ValidateActivity";
        public const string VALIDATE_LAYER = "ValidateLayer";
        public const string VALIDATE_IPR = "ValidateIPR";
        public const string VALIDATE_MAXPROD = "ValidateMaxProd";
        

        public const string WARNINGTITLE_SCENARIO_EC = "EC Scenario";
        public const string WARNINGMESSAGE_SCENARIO_EC = "There is no data for EC Plan {0} in database.";

        public const string WARNINGTITLE_SCENARIO_MC = "MC Scenario";
        public const string WARNINGMESSAGE_SCENARIO_MC = "There is no data for Max capacity in database. Please go to import page and calculate.";


        public const string WARNINGTITLE_SCENARIO_RC = "RC Scenario";
        public const string WARNINGMESSAGE_SCENARIO_RC = "There is no data for Reservoir capacity in database. Please go to import page and calculate.";

        public const string WARNINGTITLE_SCENARIO_OC = "Available Oil";
        public const string WARNINGMESSAGE_SCENARIO_USC = "This scenario has not yet been calculated. Please do the calculation on import page and come back.";

        public const string INTIAL_LOADING_MESSAGE = "Initializing System ...";
        public const string LOADING_SCENARIO = "Loading {0}";
        public const string LOADING_CALCULATE_MESSAGE = "Please wait for calculation...";
        public const string LOADING_SAVE_MESSAGE = "Saving current scenario in database...";
        public const string LOADING_SAVEAS_MESSAGE = "Saving new scenario in database...";
        public const string LOADING_SAVERC_MESSAGE = "Saving reduced capacity in database...";
        public const string LOADING_SAVERADIAL_SWITCH_MESSAGE = "Updating OCCP Radial flowing into database...";
        public const string LOADING_ADDNEWACTIVITY_MESSAGE = "Adding new activity in database...";

        public const string RegularExpression = "^\\d+\\.?\\d*$";

        public const string RelationaDataUrl = "RelationalData.svc/basicHttp";

        public const string SETTINGSFLIP_START = "SettingFlipStart";
        public const string SETTINGSFLIP_STOP = "SettingFlipHide";
        public const string FIELD_NAME = "Umm Shaif";
        public const string DEFAULT_IPR_VALUE = "1.85";


    }
}
 